﻿#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

fistCharging=0

;跳跃键改为w，注意要模拟按下与放手的时间
w::send {x Down}
w up::send {x up}

;开枪键改为q，按住就变成连射了
q::
send {c Down}
sleep,5
send {c Up}
return

;停止键改为空格
space::send {enter Down}
space up::send {enter up}

;拳头键改为a，模拟按下与放手时间
;a::send {v Down}
;a up::send {v up}

;拳头键改为a，按下不放手，这样就会自动蓄力了
a::
       loop 3
      {
	if(fistCharging>0){
		send {v up}
		fistCharging=0
		sleep,10
		send {v down}
		fistCharging=1
	}else{
		send {v down}
		fistCharging=1
	}
      }
      return

;被按倒时要起身，按s键，自动上箭头连打
s::
    loop 27
    {
        send {up Down}
		send {Up Up}
        Sleep, 25
		i=i+1
    }
return